package com.anda.logistics.dao;

import java.io.Serializable;
import java.text.ParseException;
import java.util.List;

import org.hibernate.HibernateException;

import com.anda.logistics.util.JQGridJsonData;
import com.anda.logistics.util.JQGridPager;

public interface AndaBaseDao {

	public Serializable save(Object entity);

	public void update(Object entity);

	public void delete(Object entity);
	
	public Object get(Class<Object> c, Serializable id);

	public List<Object> getBasePagerList(JQGridPager pager, String tableName);

	public long getBasePagerRecords(JQGridPager pager, String tableName);

//	public JQGridJsonData getJQGridJsonData(JQGridPager pager, String tableName,
//			String idName, String[] columns);

	public JQGridJsonData getJQGridJsonData(JQGridPager pager, String idName,
			String[] columns, Class clazz) throws NoSuchFieldException, SecurityException, HibernateException, ParseException;

}
